package asava.trees;

import java.util.List;

/**
 * @author Tim Richter
 */
public final class Apply extends Tree {
    public Tree selector;
    public List<Tree> args;

    public Apply(final Tree selector,
                 final List<Tree> args) {
        this.selector = selector;
        this.args = args;
    }

    @Override
    public int kind() {
        return TreeKind.APPLY;
    }

    @Override
    public void accept(final TreeVisitor visitor) {
        visitor.visit(this);
    }
}
